@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Orbitron";
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background-color: #c0c0c0;
}


body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    gap: 2px;
}

.droppable {
    flex-wrap: 1;
    padding: 0 1rem;
    background: linear-gradient(45deg, #ff4137, #eaad32);
    border-radius: 0.5rem;
    overflow: auto;
}

.draggable {
    margin: 1rem 0;

    /* padding: 1rem;
    padding会影响max-height的效果，可以在draggable
    里面再嵌套一层div，对这个div设置padding即可，
    这里先用line-height模拟
    */
    line-height: 150%;
    overflow: hidden;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: #e9550c;
    background-color: rgba(240, 240, 240, 0.7);
}

.dragging {
    opacity: 0.5;
}

.new-added{
    /* animation: inser t1s linear; */

    animation: insert var(--transitionTime) linear;
}

@keyframes insert{
    from {
        max-height: 0vh;
    }
    to{
        max-height: 100vh;
    }
}

.will-remove{
    animation: remove var(--transitionTime) linear;

    /* animation: remove 1s linear; */
    animation-fill-mode: forwards;
}

@keyframes remove{
    from {
        max-height: 100vh;
    }
    to{
        max-height: 0vh;
        opacity: 0;
    }
}